Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsqd: diskqueue now takes AppLogFunc instead of Logger #932

Merged
merged 1 commit into from
Aug 27, 2017

Conversation

ploxiln
Copy link
Member

@ploxiln ploxiln commented Aug 26, 2017

... so the diskqueue logging integrates with log levels.

The adapter function is needed because the LogLevel types are not defined in the same package, because go-diskqueue cannot import nsq/internal/lg. If levels were just plain ints this would be cleaner.

See nsqio/go-diskqueue#2 for companion PR. If that is merged I'll update the Godeps in this PR.

cc @mreiferson

@mreiferson
Copy link
Member

LGTM after updates on the go-diskqueue side

@ploxiln ploxiln changed the title nsqd: use go-diskqueue NewLogf ctor nsqd: diskqueue now takes AppLogFunc instead of Logger Aug 27, 2017
@ploxiln
Copy link
Member Author

ploxiln commented Aug 27, 2017

updated but still waiting to update Godeps

@mreiferson
Copy link
Member

Just waiting on Godeps update then we can land this...

@ploxiln
Copy link
Member Author

ploxiln commented Aug 27, 2017

updated Godeps

@mreiferson mreiferson merged commit e2aa615 into nsqio:master Aug 27, 2017
@ploxiln ploxiln deleted the diskqueue_logf branch September 25, 2017 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants